package com.itheima.mapper;

import com.itheima.pojo.Brand;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface BrandMapper {

    /*
     * 查询所有
     * */
    //public List<Brand> selectAll();

    /*
     * 查看详情
     * */
    @Select("select * from tb_brand where id=#{id}")
    //List<Brand> selectById(int id);

    //List<Brand> selectByCondition(@Param("status") int status, @Param("companyName") String companyName,@Param("brandName") String brandName);

    /*List<Brand> selectByCondition(Brand brand);*/

   /* List<Brand> selectByCondition(Map map);*/

    List<Brand> selectByConditionSingle(Brand brand);

}

